package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分记录表
 * @TableName points_record
 */
@TableName(value ="points_record")
@Data
public class PointsRecord implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 关联student.id
     */
    private Integer studentId;

    /**
     * 关联points_apply.id
     */
    private Integer applyId;

    /**
     * 变动积分(正负)
     */
    private Double changePoints;

    /**
     * 变动后积分
     */
    private Double currentPoints;

    /**
     * 操作类型(加分/减分/兑换/调整)
     */
    private String operationType;

    /**
     * 操作人ID
     */
    private Integer operationBy;

    /**
     * 操作人姓名
     */
    private String operationName;

    /**
     * 事由类型
     */
    private String reasonType;

    /**
     * 备注
     */
    private String remark;

    /**
     *
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
